Skip to content

Conversation

@AristurtleDev
Copy link
Contributor

Summary

This PR resolves documentation build failures by updating DocFX configuration to use pre-built assemblies instead of building from source. Previously, native build failures in both local environments and GitHub workflows prevented complete documentation generation with valid cross-reference links.

Problem

DocFX was attempting to build MonoGame projects from source during documentation generation, which failed due to native build dependencies. This resulted in:

  • Incomplete API documentation
  • Broken cross-reference links

Solution

Configure DocFX to reference pre-built assemblies directly, bypassing the native build process while maintaining complete API documentation coverage.

Changes Made

  • Updated docfx.json: Modified configuration to reference MonoGame.Framework.dll and MonoGame.Framework.Content.Pipeline.dll assemblies for API documentation generation
  • Added build scripts:
    • build.sh - Bash script for Unix/Linux/macOS environments
    • build.ps - PowerShell script for Windows environments
    • Both scripts handle the required build steps.
  • Updated CI workflows: Modified main.yml and pullrequest.yml to use the new build.sh script (project should dog food its own implementation)

@SimonDarksideJ SimonDarksideJ merged commit a00bd43 into MonoGame:main Sep 2, 2025
2 checks passed
Gaetz pushed a commit to Gaetz/docs.monogame.github.io that referenced this pull request Oct 29, 2025
…Game#175)

* Use dll assemblies for documentation reference instead of having docfx attempt to build projects

* Added bash and powershell scripts to build perform documentation build

* Update workflows to use bash script for build

* Initialize submodules and build only if needed

* Add serve script

* Update readme

* Use projects for CI builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants